

package com.kimo.shop.bean.dto;

import lombok.Data;

import java.util.List;

/**
 * 财务管理—营收概况
 *
 * @author kimo-taozhouchuan
 */
@Data
public class RevenueOverviewDto {

    /**
     * 实际收入
     */
    private Double actualIncome;
    /**
     * 实际收入-环比
     */
    private Double actualIncomeRatio;
    /**
     * 收入金额
     */
    private Double incomeAmount;
    /**
     * 收入金额-环比
     */
    private Double incomeAmountRatio;
    /**
     * 支出金额
     */
    private Double payoutAmount;
    /**
     * 支出金额-环比
     */
    private Double payoutAmountRatio;
    private List<TrendData> trendDataList;

    public RevenueOverviewDto() {
        this.incomeAmount = 0.0;
        this.payoutAmount = 0.0;
        this.actualIncome = 0.0;
        this.incomeAmountRatio = 0.0;
        this.payoutAmount = 0.0;
        this.actualIncomeRatio = 0.0;
    }

    /**
     * 趋势图数据
     */
    @Data
    public static class TrendData {
        private String currentDate;
        private Double incomeAmount;
        private Double payoutAmount;
        private Double actualIncome;

        public TrendData() {
            this.incomeAmount = 0.0;
            this.payoutAmount = 0.0;
            this.actualIncome = 0.0;
        }
    }
}
